﻿@model ABCTile.Models.Company

@{
    ViewBag.Title = "Create";
}

<h2>Create:</h2>

<div style=" color:Red">@ViewBag.Error</div><br />

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Company</legend>

		<div class="editor-label">
            @Html.LabelFor(model => model.Company_Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Company_Name)
            @Html.ValidationMessageFor(model => model.Company_Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Branch_Seq)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Branch_Seq)
            @Html.ValidationMessageFor(model => model.Branch_Seq)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contact_Role)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contact_Role)
            @Html.ValidationMessageFor(model => model.Contact_Role)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contact_Person_ID)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contact_Person_ID)
            @Html.ValidationMessageFor(model => model.Contact_Person_ID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Office_Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Office_Phone)
            @Html.ValidationMessageFor(model => model.Office_Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Office_Fax)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Office_Fax)
            @Html.ValidationMessageFor(model => model.Office_Fax)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cell_Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cell_Phone)
            @Html.ValidationMessageFor(model => model.Cell_Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Company_url)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Company_url)
            @Html.ValidationMessageFor(model => model.Company_url)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Street_Address)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Street_Address)
            @Html.ValidationMessageFor(model => model.Street_Address)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Zip)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Zip)
            @Html.ValidationMessageFor(model => model.Zip)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comments)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comments)
            @Html.ValidationMessageFor(model => model.Comments)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
